<?php
$this->breadcrumbs=array(
	'消息列表'=>array('admin'),
	'列表',
);
?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'contact-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'contactid' => array(
			'name' => 'contactid',
			'headerHtmlOptions' => array('width' => '5%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		'class' => array(
			'name' => 'class',
			'headerHtmlOptions' => array('width' => '10%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),	
		'title' => array(
			'name' => 'title',
			'headerHtmlOptions' => array('width' => '30%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),			
		'lastname' => array(
			'name' => 'lastname',
			'headerHtmlOptions' => array('width' => '5%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		'name' => array(
			'name' => 'name',
			'headerHtmlOptions' => array('width' => '8%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		'email' => array(
			'name' => 'email',
			'headerHtmlOptions' => array('width' => '20%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		'dateline' => array(
			'name' => 'dateline',
			'headerHtmlOptions' => array('width' => '16%'),
			'htmlOptions' => array('style' => 'text-align:center;')
		),
		array(
            'class' => 'CButtonColumn',
            'header' => '操作',
            'template' => '{view}{delete}',
			'buttons' => array(
                'view' => array(
                    'label' => '瀏覽',
                    'imageUrl' => Yii::app()->baseUrl . '/images/zoomin.png',
                ),
                'delete' => array(
                    'label' => '刪除',
                    'imageUrl' => Yii::app()->baseUrl . '/images/trash.png',
                ),
            ),    
        ),
	),
)); ?>
